home *** CD-ROM | disk | FTP | other *** search
/ Risc World 5 / Risc World 5.iso / SOFTWARE / Issue5 / PD / DIRSYNC / LegalStuff / gnudiff / Makefile < prev    next >
Makefile  |  2003-09-22  |  7KB  |  294 lines

  1. CC        = cc
  2. CCflags        = -c -fa -Ospace -depend !Depend -IC: -I^.lib. -throwback $(OPTS)
  3. AS        = IDEFS::Shearer.$.Programmer.Proto.AS.testAS
  4. ASflags        = -gcc -objasm -upper -throwback
  5. Link        = link
  6. Linkflags    = -o $@ -nounused -rescan
  7.  
  8. DEBUG = -DNDEBUG
  9.  
  10. OPTS =    -DHAVE_CONFIG_H -DCHAR_BIT=8 -DUSING_POSIX -DVOID=void\
  11.     -DWIFEXITED(x)=(x) -DWEXITSTATUS(x)=(x)\
  12.     "-DDEFAULT_DIFF_PROGRAM=\"diff\""\
  13.     "-DDEFAULT_EDITOR_PROGRAM=\"ed\""\
  14.     "-DDIFF_PROGRAM=\"diff\""\
  15.     "-DPR_PROGRAM=\"pr\""\
  16.     "-DGNU_PACKAGE=\"GNU diffutils\"" "-DVERSION=\"2.7\""
  17.  
  18. # LIBS =    ^.lib.o.gststubs ^.lib.o.libgnu ^.lib.o.mdwopt
  19. LIBS =    C:o.stubs ^.lib.o.libgnu ^.lib.o.mdwopt
  20.  
  21. DOLINK = $(link) $(linkflags) o.$@ $(LIBS)
  22.  
  23. # Pseudo targets to suppress messages and setup .c.o template system
  24.  
  25. .SILENT:
  26. .SUFFIXES:    .c .s .o
  27.  
  28. OBJS =        o.version #o.freesoft
  29. cmp_Objs =    o.cmp $(OBJS)
  30. diff_Objs =    o.diff o.analyze o.dir o.io o.util o.context o.ed o.ifdef o.normal o.side $(OBJS)
  31. diff3_Objs =    o.diff3 $(OBJS)
  32. sdiff_Objs =    o.sdiff $(OBJS)
  33.  
  34. # Main target
  35.  
  36. All:        cmp diff diff3 sdiff
  37.  
  38. cmp:        $(cmp_Objs) $(LIBS)
  39.         $(Link) $(Linkflags) $(cmp_Objs) $(LIBS)
  40.  
  41. diff:        $(diff_Objs) $(LIBS)
  42.         $(Link) $(Linkflags) $(diff_Objs) $(LIBS)
  43.  
  44. diff3:        $(diff3_Objs) $(LIBS)
  45.         $(Link) $(Linkflags) $(diff3_Objs) $(LIBS)
  46.  
  47. sdiff:        $(sdiff_Objs) $(LIBS)
  48.         $(Link) $(Linkflags) $(sdiff_Objs) $(LIBS)
  49.  
  50. Clean:
  51.         ifthere o.* then wipe o.* ~cfr~v
  52.         remove cmp
  53.         remove diff
  54.         remove diff3
  55.         remove sdiff
  56.  
  57. # Templates
  58.  
  59. .c.o:;        $(cc) $(CCflags) $< -o $@
  60. .s.o:;        $(as) $(ASflags) $< -o $@
  61.  
  62. # Static dependencies:
  63.  
  64. o.analyze:    c.analyze
  65. o.cmp:        c.cmp
  66. o.context:    c.context
  67. o.diff:        c.diff
  68. o.diff3:    c.diff3
  69. o.dir:        c.dir
  70. o.ed:        c.ed
  71. o.ifdef:    c.ifdef
  72. o.io:        c.io
  73. o.normal:    c.normal
  74. o.sdiff:    c.sdiff
  75. o.side:        c.side
  76. o.util:        c.util
  77. o.version:    c.version
  78.  
  79. # Dynamic dependencies:
  80. o.cmp:    c.cmp
  81. o.cmp:    h.system
  82. o.cmp:    ^.lib.h.config
  83. o.cmp:    ^.lib.h.system
  84. o.cmp:    C:h.kernel
  85. o.cmp:    ^.lib.h.ro_file
  86. o.cmp:    ^.lib.h.xalloc
  87. o.cmp:    ^.lib.h.closeout
  88. o.cmp:    ^.lib.h.version-etc
  89. o.cmp:    ^.lib.h.cmpbuf
  90. o.cmp:    ^.lib.h.c-stack
  91. o.cmp:    ^.lib.h.error
  92. o.cmp:    ^.lib.h.exitfail
  93. o.cmp:    ^.lib.h.freesoft
  94. o.cmp:    ^.lib.h.getopt
  95. o.cmp:    ^.lib.h.hard-locale
  96. o.cmp:    ^.lib.h.config
  97. o.cmp:    ^.lib.h.system
  98. o.cmp:    ^.lib.h.inttostr
  99. o.cmp:    ^.lib.h.config
  100. o.cmp:    ^.lib.h.system
  101. o.cmp:    ^.lib.h.xalloc
  102. o.cmp:    ^.lib.h.xstrtol
  103. o.diff:    c.diff
  104. o.diff:    ^.lib.h.config
  105. o.diff:    ^.lib.h.system
  106. o.diff:    C:h.kernel
  107. o.diff:    ^.lib.h.ro_file
  108. o.diff:    ^.lib.h.xalloc
  109. o.diff:    ^.lib.h.closeout
  110. o.diff:    ^.lib.h.version-etc
  111. o.diff:    ^.lib.h.regex
  112. o.diff:    h.diff
  113. o.diff:    h.system
  114. o.diff:    ^.lib.h.config
  115. o.diff:    ^.lib.h.system
  116. o.diff:    ^.lib.h.c-stack
  117. o.diff:    ^.lib.h.basename
  118. o.diff:    ^.lib.h.error
  119. o.diff:    ^.lib.h.exclude
  120. o.diff:    ^.lib.h.exitfail
  121. o.diff:    ^.lib.h.fnmatch
  122. o.diff:    ^.lib.h.freesoft
  123. o.diff:    ^.lib.h.getopt
  124. o.diff:    ^.lib.h.hard-locale
  125. o.diff:    ^.lib.h.config
  126. o.diff:    ^.lib.h.system
  127. o.diff:    ^.lib.h.prepargs
  128. o.diff:    ^.lib.h.quotesys
  129. o.diff:    ^.lib.h.xalloc
  130. o.diff:    ^.lib.h.posixver
  131. o.diff:    ^.lib.h.alloca
  132. o.diff:    ^.lib.h.ro_uname
  133. o.analyze:    c.analyze
  134. o.analyze:    h.diff
  135. o.analyze:    h.system
  136. o.analyze:    ^.lib.h.config
  137. o.analyze:    ^.lib.h.system
  138. o.analyze:    C:h.kernel
  139. o.analyze:    ^.lib.h.ro_file
  140. o.analyze:    ^.lib.h.xalloc
  141. o.analyze:    ^.lib.h.closeout
  142. o.analyze:    ^.lib.h.version-etc
  143. o.analyze:    ^.lib.h.cmpbuf
  144. o.analyze:    ^.lib.h.error
  145. o.analyze:    ^.lib.h.regex
  146. o.analyze:    ^.lib.h.xalloc
  147. o.io:    c.io
  148. o.io:    h.diff
  149. o.io:    h.system
  150. o.io:    ^.lib.h.config
  151. o.io:    ^.lib.h.system
  152. o.io:    C:h.kernel
  153. o.io:    ^.lib.h.ro_file
  154. o.io:    ^.lib.h.xalloc
  155. o.io:    ^.lib.h.closeout
  156. o.io:    ^.lib.h.version-etc
  157. o.io:    ^.lib.h.cmpbuf
  158. o.io:    ^.lib.h.regex
  159. o.io:    ^.lib.h.xalloc
  160. o.util:    c.util
  161. o.util:    h.diff
  162. o.util:    h.system
  163. o.util:    ^.lib.h.config
  164. o.util:    ^.lib.h.system
  165. o.util:    C:h.kernel
  166. o.util:    ^.lib.h.ro_file
  167. o.util:    ^.lib.h.xalloc
  168. o.util:    ^.lib.h.closeout
  169. o.util:    ^.lib.h.version-etc
  170. o.util:    ^.lib.h.basename
  171. o.util:    ^.lib.h.error
  172. o.util:    ^.lib.h.quotesys
  173. o.util:    ^.lib.h.regex
  174. o.util:    ^.lib.h.xalloc
  175. o.util:    C:h.kernel
  176. o.context:    c.context
  177. o.context:    h.diff
  178. o.context:    h.system
  179. o.context:    ^.lib.h.config
  180. o.context:    ^.lib.h.system
  181. o.context:    C:h.kernel
  182. o.context:    ^.lib.h.ro_file
  183. o.context:    ^.lib.h.xalloc
  184. o.context:    ^.lib.h.closeout
  185. o.context:    ^.lib.h.version-etc
  186. o.context:    ^.lib.h.inttostr
  187. o.context:    ^.lib.h.config
  188. o.context:    ^.lib.h.system
  189. o.context:    ^.lib.h.regex
  190. o.ed:    c.ed
  191. o.ed:    h.diff
  192. o.ed:    h.system
  193. o.ed:    ^.lib.h.config
  194. o.ed:    ^.lib.h.system
  195. o.ed:    C:h.kernel
  196. o.ed:    ^.lib.h.ro_file
  197. o.ed:    ^.lib.h.xalloc
  198. o.ed:    ^.lib.h.closeout
  199. o.ed:    ^.lib.h.version-etc
  200. o.ifdef:    c.ifdef
  201. o.ifdef:    h.diff
  202. o.ifdef:    h.system
  203. o.ifdef:    ^.lib.h.config
  204. o.ifdef:    ^.lib.h.system
  205. o.ifdef:    C:h.kernel
  206. o.ifdef:    ^.lib.h.ro_file
  207. o.ifdef:    ^.lib.h.xalloc
  208. o.ifdef:    ^.lib.h.closeout
  209. o.ifdef:    ^.lib.h.version-etc
  210. o.ifdef:    ^.lib.h.xalloc
  211. o.normal:    c.normal
  212. o.normal:    h.diff
  213. o.normal:    h.system
  214. o.normal:    ^.lib.h.config
  215. o.normal:    ^.lib.h.system
  216. o.normal:    C:h.kernel
  217. o.normal:    ^.lib.h.ro_file
  218. o.normal:    ^.lib.h.xalloc
  219. o.normal:    ^.lib.h.closeout
  220. o.normal:    ^.lib.h.version-etc
  221. o.side:    c.side
  222. o.side:    h.diff
  223. o.side:    h.system
  224. o.side:    ^.lib.h.config
  225. o.side:    ^.lib.h.system
  226. o.side:    C:h.kernel
  227. o.side:    ^.lib.h.ro_file
  228. o.side:    ^.lib.h.xalloc
  229. o.side:    ^.lib.h.closeout
  230. o.side:    ^.lib.h.version-etc
  231. o.diff3:    c.diff3
  232. o.diff3:    h.system
  233. o.diff3:    ^.lib.h.config
  234. o.diff3:    ^.lib.h.system
  235. o.diff3:    C:h.kernel
  236. o.diff3:    ^.lib.h.ro_file
  237. o.diff3:    ^.lib.h.xalloc
  238. o.diff3:    ^.lib.h.closeout
  239. o.diff3:    ^.lib.h.version-etc
  240. o.diff3:    ^.lib.h.c-stack
  241. o.diff3:    ^.lib.h.cmpbuf
  242. o.diff3:    ^.lib.h.error
  243. o.diff3:    ^.lib.h.exitfail
  244. o.diff3:    ^.lib.h.freesoft
  245. o.diff3:    ^.lib.h.getopt
  246. o.diff3:    ^.lib.h.inttostr
  247. o.diff3:    ^.lib.h.config
  248. o.diff3:    ^.lib.h.system
  249. o.diff3:    ^.lib.h.quotesys
  250. o.diff3:    ^.lib.h.xalloc
  251. o.diff3:    C:h.kernel
  252. o.diff3:    ^.lib.h.ro_uname
  253. o.sdiff:    c.sdiff
  254. o.sdiff:    h.system
  255. o.sdiff:    ^.lib.h.config
  256. o.sdiff:    ^.lib.h.system
  257. o.sdiff:    C:h.kernel
  258. o.sdiff:    ^.lib.h.ro_file
  259. o.sdiff:    ^.lib.h.xalloc
  260. o.sdiff:    ^.lib.h.closeout
  261. o.sdiff:    ^.lib.h.version-etc
  262. o.sdiff:    ^.lib.h.c-stack
  263. o.sdiff:    ^.lib.h.basename
  264. o.sdiff:    ^.lib.h.error
  265. o.sdiff:    ^.lib.h.exitfail
  266. o.sdiff:    ^.lib.h.freesoft
  267. o.sdiff:    ^.lib.h.getopt
  268. o.sdiff:    ^.lib.h.quotesys
  269. o.sdiff:    ^.lib.h.xalloc
  270. o.version:    c.version
  271. o.version:    ^.lib.h.config
  272. o.version:    ^.lib.h.system
  273. o.version:    C:h.kernel
  274. o.version:    ^.lib.h.ro_file
  275. o.version:    ^.lib.h.xalloc
  276. o.version:    ^.lib.h.closeout
  277. o.version:    ^.lib.h.version-etc
  278. o.dir:    c.dir
  279. o.dir:    h.diff
  280. o.dir:    h.system
  281. o.dir:    ^.lib.h.config
  282. o.dir:    ^.lib.h.system
  283. o.dir:    C:h.kernel
  284. o.dir:    ^.lib.h.ro_file
  285. o.dir:    ^.lib.h.xalloc
  286. o.dir:    ^.lib.h.closeout
  287. o.dir:    ^.lib.h.version-etc
  288. o.dir:    ^.lib.h.error
  289. o.dir:    ^.lib.h.exclude
  290. o.dir:    ^.lib.h.xalloc
  291. o.dir:    C:h.kernel
  292. o.dir:    C:h.swis
  293. o.dir:    ^.lib.h.alloca
  294.